package cn.dzhang.spring.service;

import java.util.List;

import cn.dzhang.spring.model.User;

public interface UserService {

	User saveOrUpdate(User user);

	List<User> findAll();

	boolean exists(String name);

	User findById(String id);

	boolean deleteById(String id);

	boolean delete(User user);

	List<User> findByName(String name);

	User findByUsername(String username);

}
